package myjavax.security.auth.callback;

import java.io.Serializable;

public class NameCallback implements Serializable, Callback {
    private String inputName;
    private String prompt;

    public NameCallback(String prompt) {
        if (prompt == null || prompt.length() == 0) {
            throw new IllegalArgumentException();
        }
        this.prompt = prompt;
    }

    public void setName(String name) {
        this.inputName = name;
    }

    public String getName() {
        return this.inputName;
    }
}
